package com.kingdee.eas.jky.pm.app;

import org.apache.log4j.Logger;

import com.kingdee.bos.BOSException;
import com.kingdee.bos.Context;
import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.eas.jky.crm.ContractManageInfo;
import com.kingdee.eas.jky.pm.IProductionNotice;
import com.kingdee.eas.jky.pm.ProductionNoticeFactory;
import com.kingdee.eas.jky.pm.ProductionNoticeInfo;
import com.kingdee.eas.xr.app.XRBillStatusEnum;

public class ProductionNoticeControllerBean extends AbstractProductionNoticeControllerBean
{
    private static Logger logger =
        Logger.getLogger("com.kingdee.eas.jky.pm.app.ProductionNoticeControllerBean");
    protected void _audit(Context ctx, IObjectPK pk)throws BOSException, EASBizException
    {
         super._audit(ctx, pk);
    }
    protected void _unAudit(Context ctx, IObjectPK pk)throws BOSException, EASBizException
    {
         super._unAudit(ctx, pk);
    }
    protected void _unAudit(Context ctx, IObjectPK[] pks)throws BOSException, EASBizException
    {
         super._unAudit(ctx, pks);
    }
    protected String _getBindingProperty(Context ctx)throws BOSException
    {
        return  super._getBindingProperty(ctx);
    }
	protected void _backEdit(Context ctx, IObjectValue model)
			throws BOSException {
		 IProductionNotice   Product =ProductionNoticeFactory.getLocalInstance(ctx);
		 ProductionNoticeInfo infos = (ProductionNoticeInfo)model;
		 ProductionNoticeInfo info;
		try {
			info = Product.getProductionNoticeInfo(new ObjectUuidPK(infos.getId()));
			info.setStatus(XRBillStatusEnum.TEMPORARILYSAVED);
			Product.update(new ObjectUuidPK(info.getId()), info);
		} catch (EASBizException e) {
			e.printStackTrace();
		}
		
	}
}